//
//  MailXQTableViewCell.m
//  XingRun
//
//  Created by 赵颜彬 on 17/1/12.
//  Copyright © 2017年 赵颜彬. All rights reserved.
//

#import "MailXQTableViewCell.h"

@implementation MailXQTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"占位图"]];
        [self.contentView addSubview:_img];
        
        self.name = [[UILabel alloc] init];
        _name.text = @"运动纪念T恤";
        _name.font = [UIFont fontWithName:@"Heiti SC" size:14];
        [self.contentView addSubview:_name];
        
        self.price = [[UILabel alloc] init];
        _price.text = @"100星豆";
        _price.font = [UIFont fontWithName:@"Heiti SC" size:12];
        _price.textColor = [UIColor blueColor];
        [self.contentView addSubview:_price];
        
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _img.frame = CGRectMake(0 * WIDTH, 0 * HEIGHT, 375 * WIDTH, 200 * HEIGHT);
    _name.frame = CGRectMake(10 * WIDTH, 210 * HEIGHT, 80 * WIDTH, 30 * HEIGHT);
    _price.frame =CGRectMake(10 * WIDTH, 250 * HEIGHT, 100 * WIDTH, 30 * HEIGHT);

}


@end
